// eslint-disable-next-line
import {
  UserLayout,
  BasicLayout,
  DashboardLayout,
  PageView,
  BlankLayout,
  RouteView
} from '@/layouts';

/**
 * 动态路由
 */
export const asyncRouterMap = [{
  id: 1,
  name: 'authenticationCenter',
  title: 'menu.authenticationCenter',
  meta: '{"icon":"unordered-list"}',
  path: '/authenticationCenter',
  redirect: '/authenticationCenter/menu',
  component: 'PageView',
  children: [{
    "id": 15,
    "path": "/structure",
    "name": "structure",
    "title": "menu.structure",
    "component": "BlankLayout",
    "redirect": "/structure/list",
    "meta": "{\"icon\":\"dashboard\"}",
    "hideChildrenInMenu": true,
    "children": [{
      "id": 151,
      "name": "structureList",
      "title": "menu.structureList",
      "meta": "{\"hidden\":\"true\",\"permissionId\":[\"structureList\"]}",
      "path": "/structure/list/:orgId?",
      "component": "StructureList",
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      },
      {
        "action": "add",
        "name": "button.add",
        "access": false
      },
      {
        "action": "edit",
        "name": "button.edit"
      },
      {
        "action": "delete",
        "name": "button.delete"
      },
      {
        "action": "sort",
        "name": "button.sort"
      },
      {
        "action": "import",
        "name": "button.import"
      },
      {
        "action": "export",
        "name": "button.export"
      },
      {
        "action": "resign",
        "name": "button.resign"
      },
      {
        "action": "resetPw",
        "name": "button.resetPw"
      },
      {
        "action": "transferDept",
        "name": "button.transferDept"
      }
      ]
    },
    {
      "id": 152,
      "name": "structureUser",
      "title": "menu.structureUser",
      "meta": "{\"hidden\":\"true\",\"back\":\"true\",\"permissionId\":[\"structureUser\"]}",
      "path": "/structure/user/:id?",
      "component": "StructureUser",
      "actions": [{
        "action": "view",
        "name": "button.view"
      },
      {
        "action": "save",
        "name": "button.save"
      }
      ]
    },
    {
      "id": 153,
      "name": "structureUserInfo",
      "title": "menu.structureUserInfo",
      "meta": "{\"hidden\":\"true\",\"back\":\"true\",\"permissionId\":[\"structureUserInfo\"]}",
      "path": "/structure/user/info/:id",
      "component": "StructureUserInfo",
      "actions": [{
        "action": "view",
        "name": "button.view"
      }]
    }
    ]
  },
  {
    id: 11,
    name: 'menu',
    title: 'menu.menu',
    meta: '{"icon":"menu","permissionId":["menu"]}',
    path: '/authenticationCenter/menu',
    component: 'MenuConfig',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }, {
      "action": "enable",
      "name": "button.enable",
      "access": false
    }, {
      "action": "disable",
      "name": "button.disable",
      "access": false
    }]
  },
  {
    id: 12,
    name: 'role',
    title: 'menu.role',
    meta: '{"icon":"user","permissionId":["role"]}',
    path: '/authenticationCenter/role',
    redirect: '/authenticationCenter/role/roleList',
    component: 'RouteView',
    hideChildrenInMenu: true,
    children: [{
      id: 121,
      name: 'roleList',
      title: 'menu.roleList',
      meta: '{"hidden":"true","permissionId":["roleList"]}',
      path: '/authenticationCenter/role/roleList',
      component: 'RoleConfig',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }, {
        "action": "enable",
        "name": "button.enable",
        "access": false
      }, {
        "action": "disable",
        "name": "button.disable",
        "access": false
      }]
    },
    {
      id: 122,
      name: 'roleDetail',
      title: 'menu.roleDetail',
      meta: '{"hidden":"true","back":"true","permissionId":["roleDetail"]}',
      path: '/authenticationCenter/role/roleDetail',
      component: 'RoleForm'
    }
    ]
  },
  {
    id: 13,
    name: 'userGroup',
    title: 'menu.userGroup',
    meta: '{"icon":"team","permissionId":["userGroup"]}',
    path: '/authenticationCenter/userGroup',
    component: 'UserGroup',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }, {
      "action": "add",
      "name": "button.add",
      "access": false
    }, {
      "action": "edit",
      "name": "button.edit",
      "access": false
    }, {
      "action": "delete",
      "name": "button.delete",
      "access": false
    }]
  },
  {
    id: 14,
    name: 'authenticationConfig',
    title: 'menu.authenticationConfig',
    meta: '{"icon":"safety-certificate","permissionId":["authenticationConfig"]}',
    path: '/authenticationCenter/authenticationConfig',
    redirect: '/authenticationCenter/authenticationConfig/loginConfig',
    component: 'AuthenticationConfig',
    hideChildrenInMenu: true,
    children: [{
      id: 141,
      name: 'loginConfig',
      title: 'menu.loginConfig',
      meta: '{"hidden":"true","permissionId":["loginConfig"]}',
      path: '/authenticationCenter/authenticationConfig/loginConfig',
      component: 'LoginConfig',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "update",
        "name": "button.update",
        "access": false
      }]
    },
    {
      id: 142,
      name: 'securityConfiguration',
      title: 'menu.securityConfiguration',
      meta: '{"hidden":"true","permissionId":["securityConfiguration"]}',
      path: '/authenticationCenter/authenticationConfig/securityConfiguration',
      component: 'SecurityConfiguration',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "save",
        "name": "button.save",
        "access": false
      }]
    }
    ]
  }
  ]
},
{
  id: 2,
  name: 'platformManagement',
  title: 'menu.platformManagement',
  meta: '{"icon":"laptop"}',
  path: '/platformManagement',
  redirect: '/platformManagement/company',
  component: 'PageView',
  children: [{
    id: 21,
    name: 'company',
    title: 'menu.company',
    meta: '{"icon":"safety-certificate","permissionId":["company"]}',
    path: '/platformManagement/company',
    redirect: '/platformManagement/company/baseInfo',
    component: 'Company',
    hideChildrenInMenu: true,
    children: [{
      id: 211,
      name: 'companyBaseInfo',
      title: 'menu.baseInfo',
      meta: '{"hidden":"true","permissionId":["companyBaseInfo"]}',
      path: '/platformManagement/company/baseInfo',
      component: 'CompanyBaseInfo',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "update",
        "name": "button.update",
        "access": false
      }]
    }, {
      id: 212,
      name: 'companySettings',
      title: 'menu.companyMsgSettings',
      meta: '{"hidden":"true","permissionId":["companySettings"]}',
      path: '/platformManagement/company/msgSettings',
      redirect: '/platformManagement/company/msgSettings/sys-info',
      component: 'CompanySettings',
      children: [{
        id: 2121,
        name: 'companySysInfo',
        title: 'menu.companySysInfo',
        meta: '{"hidden":"true","permissionId":["companySysInfo"]}',
        path: '/platformManagement/company/msgSettings/sys-info',
        component: 'CompanySysInfo',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "update",
          "name": "button.update",
          "access": false
        }],
      },
      {
        id: 2122,
        name: 'companyWxConfig',
        title: 'menu.companyWxConfig',
        meta: '{"hidden":"true","permissionId":["companyWxConfig"]}',
        path: '/platformManagement/company/msgSettings/companyWx-config',
        component: 'CompanyWxConfig',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "update",
          "name": "button.update",
          "access": false
        }],
      },
      {
        id: 2123,
        name: 'companyMailConfig',
        title: 'menu.companyMailConfig',
        meta: '{"hidden":"true","permissionId":["companyMailConfig"]}',
        path: '/platformManagement/company/msgSettings/mail-config',
        component: 'CompanyMailConfig',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "update",
          "name": "button.update",
          "access": false
        }],
      }
      ]
    },]
  },
  {
    id: 22,
    name: 'applications',
    title: 'menu.applications',
    meta: '{"icon":"appstore","permissionId":["applications"]}',
    path: '/platformManagement/applications',
    redirect: '/platformManagement/applications/applicationsList',
    component: 'RouteView',
    hideChildrenInMenu: true,
    children: [{
      id: 221,
      name: 'applicationsList',
      title: 'menu.applicationsList',
      meta: '{"hidden":"true","permissionId":["applicationsList"]}',
      path: '/platformManagement/applications/applicationsList',
      component: 'ApplicationsList',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }, {
        "action": "enable",
        "name": "button.enable",
        "access": false
      }, {
        "action": "disable",
        "name": "button.disable",
        "access": false
      }]
    },
    {
      id: 222,
      name: 'applicationInfo',
      title: 'menu.applicationInfo',
      meta: '{"hidden":"true","back":"true","permissionId":["applicationInfo"]}',
      path: '/platformManagement/applications/applicationInfo/:id?',
      component: 'ApplicationsInfo',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }]
    },
    {
      id: 223,
      name: 'baseDataConfig',
      title: 'menu.baseDataConfig',
      meta: '{"hidden":"true","back":"true","permissionId":["baseDataConfig"]}',
      path: '/platformManagement/applications/baseDataConfig',
      component: 'ApplicationBaseDataConfig',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }]
    },
    {
      id: 224,
      name: 'messageConfig',
      title: 'menu.messageConfig',
      meta: '{"hidden":"true","permissionId":["messageConfig"]}',
      path: '/platformManagement/applications/messageConfig',
      redirect: '/platformManagement/applications/messageConfig/sysInfo',
      component: 'ApplicationMessageConfig',
      hideChildrenInMenu: true,
      children: [{
        id: 2241,
        name: 'appSysInfo',
        title: 'menu.appSysInfo',
        meta: '{"hidden":"true","back":"true","permissionId":["appSysInfo"]}',
        path: '/platformManagement/applications/messageConfig/sysInfo',
        component: 'ApplicationSysInfo',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "edit",
          "name": "button.edit",
          "access": false
        }]
      },
      {
        id: 2241,
        name: 'appCompanyWxConfig',
        title: 'menu.appCompanyWxConfig',
        meta: '{"hidden":"true","back":"true","permissionId":["appCompanyWxConfig"]}',
        path: '/platformManagement/applications/messageConfig/companyWxConfig',
        component: 'ApplicationCompanyWxConfig',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "edit",
          "name": "button.edit",
          "access": false
        }]
      },
      {
        id: 2241,
        name: 'appMailConfig',
        title: 'menu.appMailConfig',
        meta: '{"hidden":"true","back":"true","permissionId":["appMailConfig"]}',
        path: '/platformManagement/applications/messageConfig/mailConfig',
        component: 'ApplicationMailConfig',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "edit",
          "name": "button.edit",
          "access": false
        }]
      }
      ]
    }
    ]
  },
  {
    id: 23,
    name: 'account',
    title: 'menu.account',
    meta: '{"icon":"dashboard"}',
    path: '/account',
    redirect: '/account/base',
    component: 'Account',
    hideChildrenInMenu: true,
    children: [{
      id: 231,
      name: 'accountBase',
      title: 'menu.accountBase',
      meta: '{"hidden":"true","permissionId":["accountBase"]}',
      path: '/account/base',
      component: 'AccountBaseInfo',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }]
    },
    {
      id: 232,
      name: 'accountSecurity',
      title: 'menu.accountSecurity',
      meta: '{"hidden":"true","permissionId":["accountSecurity"]}',
      path: '/account/security',
      component: 'AccountSecurity',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }]
    },
    {
      id: 233,
      name: 'accountShiftConfig',
      title: 'menu.accountShiftConfig',
      meta: '{"hidden":"true","permissionId":["accountShiftConfig"]}',
      path: '/account/shiftConfig',
      component: 'AccountShiftConfig',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }]
    }
    ]
  },
  {
    id: 24,
    name: 'operationLog',
    title: 'menu.operationLog',
    meta: '{"icon":"unordered-list","permissionId":["operationLog"]}',
    path: '/platformManagement/operationLog',
    component: 'SysOperationLog',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }]
  },
  {
    id: 25,
    name: 'loginLog',
    title: 'menu.loginLog',
    meta: '{"icon":"unordered-list","permissionId":["loginLog"]}',
    path: '/platformManagement/loginLog',
    component: 'LoginLog',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }]
  },
  ]
},
{
  id: 3,
  name: 'technology',
  title: 'menu.technology',
  meta: '{"icon":"pic-right"}',
  path: '/technology',
  redirect: '/technology/uda',
  component: 'PageView',
  children: [{
    id: 31,
    name: 'Uda',
    title: 'menu.Uda',
    meta: '{"icon":"setting","permissionId":["Uda"]}',
    path: '/technology/Uda',
    redirect: '/technology/Uda/datasheet',
    component: 'RouteView',
    hideChildrenInMenu: true,
    children: [{
      id: 311,
      name: 'udaDataSheet',
      title: 'menu.udaDataSheet',
      meta: '{"hidden":"true","permissionId":["udaDataSheet"]}',
      path: '/technology/Uda/datasheet',
      component: 'UdaDatasheet',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }]
    },
    {
      id: 312,
      name: 'setExtension',
      title: 'menu.setExtension',
      meta: '{"hidden":"true","back":"true","permissionId":["setExtension"]}',
      path: '/technology/Uda/setExtension',
      component: 'UdaSetExtension',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }]
    }
    ]
  },
  {
    id: 32,
    name: 'serial',
    title: 'menu.serial',
    meta: '{"icon":"code","permissionId":["serial"]}',
    path: '/technology/serial',
    component: 'SerialNumberManage',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }, {
      "action": "add",
      "name": "button.add",
      "access": false
    }, {
      "action": "edit",
      "name": "button.edit",
      "access": false
    }, {
      "action": "delete",
      "name": "button.delete",
      "access": false
    }]
  },
  {
    id: 33,
    name: 'dict',
    title: 'menu.dict',
    meta: '{"icon":"code","permissionId":["dict"]}',
    path: '/technology/dict',
    component: 'DictSetting',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }, {
      "action": "add",
      "name": "button.add",
      "access": false
    }, {
      "action": "edit",
      "name": "button.edit",
      "access": false
    }, {
      "action": "delete",
      "name": "button.delete",
      "access": false
    }]
  },
  {
    name: 'printService',
    title: 'menu.printService',
    meta: '{"icon":"cluster"}',
    path: '/technology/printService',
    redirect: '/technology/printService/printHistory',
    component: 'RouteView',
    children: [{
      name: 'printHistory',
      title: 'menu.printHistory',
      meta: '{"icon":"file-text","permissionId":["printHistory"]}',
      path: '/technology/printService/printHistory',
      component: 'PrintHistory',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "print",
        "name": "button.print",
        "access": false
      }]
    },
    {
      name: 'printer',
      title: 'menu.printer',
      meta: '{"icon":"printer","permissionId":["printer"]}',
      path: '/technology/printService/printer',
      component: 'Printer',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "print",
        "name": "button.print",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }]
    },
    {
      name: 'printTemplate',
      title: 'menu.printTemplate',
      meta: '{"icon":"file","permissionId":["printTemplate"]}',
      path: '/technology/printService/printTemplate',
      component: 'PrintTemplate',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "print",
        "name": "button.print",
        "access": false
      }, {
        "action": "design",
        "name": "button.design",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }]
    }
    ]
  }
  ]
},
{
  name: 'messageCenter',
  title: 'menu.messageCenter',
  meta: '{"icon":"cluster"}',
  path: '/messageCenter',
  redirect: '/messageCenter/message',
  component: 'PageView',
  children: [{
    name: 'message',
    title: 'menu.message',
    meta: '{"icon":"message","permissionId":["message"]}',
    path: '/messageCenter/message',
    component: 'Message',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }]
  },
  {
    name: 'notice',
    title: 'menu.notice',
    meta: '{"icon":"notification","permissionId":["notice"]}',
    path: '/messageCenter/notice',
    component: 'Notice',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }]
  },
  {
    name: 'template',
    title: 'menu.template',
    meta: '{"icon":"file","permissionId":["template"]}',
    path: '/messageCenter/template',
    redirect: '/messageCenter/template/list',
    component: 'RouteView',
    hideChildrenInMenu: true,
    children: [{
      name: 'templateList',
      title: 'menu.templateList',
      meta: '{"hidden":"true","permissionId":["templateList"]}',
      path: '/messageCenter/template/list',
      component: 'MessageTemplate',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.add",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }]
    },
    {
      name: 'templateDetail',
      title: 'menu.templateDetail',
      meta: '{"hidden":"true","back":"true","permissionId":["templateDetail"]}',
      path: '/messageCenter/template/templateDetail/:id?',
      component: 'MessageTemplateDetail',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "save",
        "name": "button.save",
        "access": false
      }]
    }
    ]
  },
  {
    name: 'escalate',
    title: 'menu.escalate',
    meta: '{"icon":"bell","permissionId":["escalate"]}',
    path: '/messageCenter/escalate',
    redirect: '/messageCenter/escalate/list',
    component: 'RouteView',
    hideChildrenInMenu: true,
    children: [{
      name: 'escalateList',
      title: 'menu.escalateList',
      meta: '{"hidden":"true","permissionId":["escalateList"]}',
      path: '/messageCenter/escalate/list',
      component: 'Escalate',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "add",
        "name": "button.save",
        "access": false
      }, {
        "action": "edit",
        "name": "button.edit",
        "access": false
      }, {
        "action": "delete",
        "name": "button.delete",
        "access": false
      }]
    },
    {
      name: 'escalateDetail',
      title: 'menu.escalateDetail',
      meta: '{"hidden":"true","back":"true","permissionId":["escalateDetail"]}',
      path: '/messageCenter/escalate/detail/:id?',
      component: 'EscalateDetail',
      "actions": [{
        "action": "view",
        "name": "button.view",
        "access": false
      }, {
        "action": "save",
        "name": "button.save",
        "access": false
      }]
    }
    ]
  },
  ]
},
{
  name: 'industrialBigData',
  title: 'menu.industrialBigData',
  meta: '{"icon":"database"}',
  path: '/industrialBigData',
  redirect: '/industrialBigData/dataSource',
  component: 'PageView',
  children: [{
    name: 'dataSource',
    title: 'menu.dataSource',
    meta: '{"icon":"hdd","permissionId":["dataSource"]}',
    path: '/industrialBigData/dataSource',
    component: 'DataSource',
    "actions": [{
      "action": "view",
      "name": "button.view",
      "access": false
    }, {
      "action": "add",
      "name": "button.add",
      "access": false
    }, {
      "action": "edit",
      "name": "button.edit",
      "access": false
    }, {
      "action": "delete",
      "name": "button.delete",
      "access": false
    }]
  }, {
    name: 'metadata',
    title: 'menu.metadata',
    meta: '{"icon":"database"}',
    path: '/industrialBigData/metadata',
    redirect: '/industrialBigData/metadata/metadataSet',
    component: 'RouteView',
    children: [
      {
        name: 'metadataSet',
        title: 'menu.metadataSet',
        meta: '{"icon":"table"}',
        path: '/industrialBigData/metadata/metadataSet',
        redirect: '/industrialBigData/metadata/metadataSet/list',
        component: 'RouteView',
        hideChildrenInMenu: true,
        children: [
          {
            name: 'metadataSetList',
            title: 'menu.metadataSetList',
            meta: '{"hidden":"true","permissionId":["metadataSetList"]}',
            path: '/industrialBigData/metadata/metadataSet/list',
            component: 'MetadataSet',
            "actions": [{
              "action": "view",
              "name": "button.view",
              "access": false
            }, {
              "action": "edit",
              "name": "button.edit",
              "access": false
            }]
          },
          {
            name: 'worksheetDetail',
            title: 'menu.worksheetDetail',
            meta: '{"hidden":"true","back":"true","permissionId":["worksheetDetail"]}',
            path: '/industrialBigData/metadata/metadataSet/worksheet-detail',
            component: 'WorksheetDetail',
            "actions": [{
              "action": "view",
              "name": "button.view",
              "access": false
            }, {
              "action": "edit",
              "name": "button.edit",
              "access": false
            }]
          }
        ]
      }]
  }, {
    name: 'dataMining',
    title: 'menu.dataMining',
    meta: '{"icon":"profile"}',
    path: '/industrialBigData/dataMining',
    redirect: '/industrialBigData/dataMining/metadataSet',
    component: 'RouteView',
    children: [
      {
        name: 'autonomousDataSet',
        title: 'menu.autonomousDataSet',
        meta: '{"icon":"table"}',
        path: '/industrialBigData/dataMining/autonomousDataSet',
        redirect: '/industrialBigData/dataMining/autonomousDataSet/list',
        component: 'RouteView',
        hideChildrenInMenu: true,
        children: [
          {
            name: 'autonomousDataSetList',
            title: 'menu.autonomousDataSetList',
            meta: '{"icon":"table","hidden":"true","permissionId":["autonomousDataSetList"]}',
            path: '/industrialBigData/dataMining/autonomousDataSet/list',
            component: 'AutonomousDataSet',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }, {
              "action": "add",
              "name": "button.add",
              "access": false
            }, {
              "action": "edit",
              "name": "button.edit",
              "access": false
            }, {
              "action": "delete",
              "name": "button.delete",
              "access": false
            }, {
              "action": "auth",
              "name": "button.auth",
              "access": false
            }]
          },
          {
            name: 'autonomousDataSetDetail',
            title: 'menu.autonomousDataSetDetail',
            meta: '{"hidden":"true","back":"true","permissionId":["autonomousDataSetDetail"]}',
            path: '/industrialBigData/dataMining/autonomousDataSet/detail/:id',
            component: 'SQLWorksheetDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }, {
              "action": "edit",
              "name": "button.edit",
              "access": false
            }]
          }
        ]
      }
    ]
  },
  {
    name: 'dataCollection',
    title: 'menu.dataCollection',
    meta: '{"icon":"database"}',
    path: '/industrialBigData/dataCollection',
    redirect: '/industrialBigData/dataCollection/dataFlowDesign',
    component: 'RouteView',
    children: [
      {
        name: 'dataFlowDesign',
        title: 'menu.dataFlowDesign',
        meta: '{"icon":"table","permissionId":["dataFlowDesign"]}',
        path: '/industrialBigData/dataCollection/dataFlowDesign',
        component: 'DataFlowDesign',
        actions: [{
          "action": "view",
          "name": "button.view",
          "access": false
        }]
      }
    ]
  },
  {
    name: 'dataServices',
    title: 'menu.dataServices',
    meta: '{"icon":"box-plot"}',
    path: '/industrialBigData/dataServices',
    redirect: '/industrialBigData/dataServices/dataAuthorization',
    component: 'RouteView',
    children: [
      {
        name: 'dataAuthorization',
        title: 'menu.dataAuthorization',
        meta: '{"icon":"highlight","permissionId":["dataAuthorization"]}',
        path: '/industrialBigData/dataServices/dataAuthorization',
        component: 'DataServices',
        actions: [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "auth",
          "name": "button.auth",
          "access": false
        }, {
          "action": "unbind",
          "name": "button.unbind",
          "access": false
        }]
      }
    ]
  },
  {
    name: 'thingManagement',
    title: 'menu.thingManagement',
    meta: '{"icon":"reconciliation"}',
    path: '/industrialBigData/thingManagement',
    redirect: '/industrialBigData/thingManagement/thingModel',
    component: 'RouteView',
    children: [
      {
        name: 'thingModel',
        title: 'menu.thingModel',
        meta: '{"icon":"project","permissionId":["thingModel"]}',
        path: '/industrialBigData/thingManagement/thingModel',
        component: 'PhysicalModel',
        actions: [{
          "action": "view",
          "name": "button.view",
          "access": false
        }, {
          "action": "add",
          "name": "button.add",
          "access": false
        }, {
          "action": "edit",
          "name": "button.edit",
          "access": false
        }, {
          "action": "delete",
          "name": "button.delete",
          "access": false
        }]
      },
      {
        name: 'thingInstance',
        title: 'menu.thingInstance',
        meta: '{"icon":"file"}',
        path: '/industrialBigData/thingManagement/thingInstance',
        redirect: '/industrialBigData/thingManagement/thingInstance/list',
        hideChildrenInMenu: true,
        component: 'RouteView',
        children: [
          {
            name: 'thingInstanceList',
            title: 'menu.thingInstanceList',
            meta: '{"hidden":"true","permissionId":["thingInstanceList"]}',
            path: '/industrialBigData/thingManagement/thingInstance/list',
            component: 'PhysicalInstance',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }, {
              "action": "add",
              "name": "button.add",
              "access": false
            }, {
              "action": "edit",
              "name": "button.edit",
              "access": false
            }, {
              "action": "delete",
              "name": "button.delete",
              "access": false
            }, {
              "action": "copy",
              "name": "button.copy",
              "access": false
            }, {
              "action": "auth",
              "name": "button.auth",
              "access": false
            }]
          },
          {
            name: 'thingInstanceDetail',
            title: 'menu.thingInstanceDetail',
            meta: '{"hidden":"true","back":"true","permissionId":["thingInstanceDetail"]}',
            path: '/industrialBigData/thingManagement/thingInstance/detail/:id?',
            component: 'PhysicalInstanceDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }]
          },
          {
            name: 'newThingInstance',
            title: 'menu.newThingInstance',
            meta: '{"hidden":"true","back":"true","permissionId":["newThingInstance"]}',
            path: '/industrialBigData/thingManagement/thingInstance/newThingInstance',
            component: 'PhysicalInstanceDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }]
          },
          {
            name: 'editThingInstance',
            title: 'menu.editThingInstance',
            meta: '{"hidden":"true","back":"true","permissionId":["editThingInstance"]}',
            path: '/industrialBigData/thingManagement/thingInstance/editThingInstance/:id?',
            component: 'PhysicalInstanceDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }]
          }
        ]
      },
      {
        name: 'thingRules',
        title: 'menu.thingRules',
        meta: '{"icon":"alert"}',
        path: '/industrialBigData/thingManagement/thingRules',
        redirect: '/industrialBigData/thingManagement/thingRules/list',
        hideChildrenInMenu: true,
        component: 'RouteView',
        children: [
          {
            name: 'thingRulesList',
            title: 'menu.thingRulesList',
            meta: '{"hidden":"true","permissionId":["thingRulesList"]}',
            path: '/industrialBigData/thingManagement/thingRules/list',
            component: 'PhysicalRules',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }, {
              "action": "add",
              "name": "button.add",
              "access": false
            }, {
              "action": "edit",
              "name": "button.edit",
              "access": false
            }, {
              "action": "delete",
              "name": "button.delete",
              "access": false
            }, {
              "action": "enable",
              "name": "button.enable",
              "access": false
            }, {
              "action": "disable",
              "name": "button.disable",
              "access": false
            }]
          },
          {
            name: 'thingRulesDetail',
            title: 'menu.thingRulesDetail',
            meta: '{"hidden":"true","back":"true","permissionId":["thingRulesDetail"]}',
            path: '/industrialBigData/thingManagement/thingRules/detail/:id?',
            component: 'PhysicalRulesDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }]
          },
          {
            name: 'newThingRules',
            title: 'menu.newThingRules',
            meta: '{"hidden":"true","back":"true","permissionId":["newThingRules"]}',
            path: '/industrialBigData/thingManagement/thingRules/newThingRules',
            component: 'PhysicalRulesDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }]
          },
          {
            name: 'editThingRules',
            title: 'menu.editThingRules',
            meta: '{"hidden":"true","back":"true","permissionId":["editThingRules"]}',
            path: '/industrialBigData/thingManagement/thingRules/editThingRules/:id?',
            component: 'PhysicalRulesDetail',
            actions: [{
              "action": "view",
              "name": "button.view",
              "access": false
            }]
          }
        ]
      },
    ]
  }
  ]
},
{
  name: 'edgeManagement',
  title: 'menu.edgeManagement',
  meta: '{"icon":"laptop","permissionId":["edgeManagement"]}',
  path: '/edgeManagement',
  component: 'EdgeList',
  "actions": [{
    "action": "view",
    "name": "button.view",
    "access": false
  }, {
    "action": "add",
    "name": "button.add",
    "access": false
  }, {
    "action": "edit",
    "name": "button.edit",
    "access": false
  }, {
    "action": "delete",
    "name": "button.delete",
    "access": false
  }]
}

]

// 个人中心 固定都有的
export const personalRouterMap = {
  name: 'platformManagement',
  title: 'menu.platformManagement',
  meta: '{"icon":"laptop"}',
  path: '/platformManagement',
  redirect: '/account',
  component: 'PageView',
  status: 1,
  children: [
    {
      name: 'account',
      title: 'menu.account',
      meta: '{"icon":"dashboard"}',
      path: '/account',
      redirect: '/account/base',
      component: 'Account',
      hideChildrenInMenu: true,
      status: 1,
      children: [{
        name: 'accountBase',
        title: 'menu.accountBase',
        meta: '{"hidden":"true","permissionId":["accountBase"]}',
        path: '/account/base',
        component: 'AccountBaseInfo',
        status: 1,
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": true
        }]
      },
      {
        name: 'accountSecurity',
        title: 'menu.accountSecurity',
        meta: '{"hidden":"true","permissionId":["accountSecurity"]}',
        path: '/account/security',
        status: 1,
        component: 'AccountSecurity',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": true
        }, {
          "action": "edit",
          "name": "button.edit",
          "access": true
        }]
      },
      {
        name: 'accountShiftConfig',
        title: 'menu.accountShiftConfig',
        meta: '{"hidden":"true","permissionId":["accountShiftConfig"]}',
        path: '/account/shiftConfig',
        status: 1,
        component: 'AccountShiftConfig',
        "actions": [{
          "action": "view",
          "name": "button.view",
          "access": true
        }, {
          "action": "add",
          "name": "button.add",
          "access": true
        }, {
          "action": "edit",
          "name": "button.edit",
          "access": true
        }, {
          "action": "delete",
          "name": "button.delete",
          "access": true
        }]
      }
      ]
    }
  ]
}




/**
 * 基础路由
 */
export const constantRouterMap = [{
  name: 'sso',
  path: '/sso',
  component: () => import( /* webpackChunkName: "auth" */ '@/views/auth/SSO'),
  hidden: true
},
{
  path: '/login',
  component: UserLayout,
  redirect: '/login',
  hidden: true,
  children: [{
    path: '/',
    name: 'login',
    component: () => import( /* webpackChunkName: "auth" */ '@/views/auth/Login')
  }]
},
{
  path: '/dashboard',
  component: DashboardLayout,
  redirect: '/dashboard',
  hidden: true,
  children: [{
    path: '/',
    name: 'dashboard',
    component: () => import( /* webpackChunkName: "dashboard" */ '@/views/dashboard/Index')
  }]
},
{
  path: '/404',
  name: '404',
  component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404')
}
]